/**
 * Created by Administrator on 2017/4/28.
 */
swan_pc
    .factory("orgCompanyList",function($resource){
        return $resource("api/orgCompanys/findByEO/:id",{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })
    .factory("reportList",function($resource){
        return $resource("api/orgContacts/getAllLower/:id",{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            },
            "queryAll":{
                method:"GET",
                url:"api/orgContacts/getHierarchy/:id"
            }

        })
    })
    .factory("myOrgContact",function($resource){
        return $resource("api/orgContacts/findByUser/:id",{id:"@id"},{
            "get":{
                method:"GET"
            }
        })
    });